<?php
$make    = Model_Listing_Motorcycle::getMake();
$model   = Model_Listing_Motorcycle::getModel((string)$this->listing->model);
$carType = Model_Listing_Motorcycle::getMotorcycleType($this->listing->motorcycletype);
?>
<?php if (!empty($this->listing->make) || !empty($this->listing->model) || !empty($this->listing->yearmanufactured)): ?>
<dd class="detail">
	<?php 
	$to_add     = '';
	$to_add1     = '';
	$to_add2     = '';
	if (!empty($this->listing->make)){ ?>
	<a href="<?php echo Ac_Util::getCrossLink((string)$this->listing->make->name, 'make_motorcycle');?>">
		<?php echo $make[(string)$this->listing->make->name];?></a><?php 
	$to_add = ', '; 
	$to_add1 = ', ';
	$to_add2 = ', ';
	}
	if (!empty($this->listing->model)){ 
		echo $to_add . $model[(string)$this->listing->model->name];
		$to_add1 = ', ';
	}
	if (!empty($this->listing->yearmanufactured)) {
		echo $to_add1 . (int)$this->listing->yearmanufactured . $this->t('Year');
		$to_add2 = ', ';
	}
	if (!empty($this->listing->motorcycletype)){ 
		echo $to_add2 . $carType;
	}?>
</dd>
<?php endif; ?>

<?php if (!empty($this->listing->area_l2)):?>
<?php $distric_name = $this->listing->area_l2->name;?>
<dd class="detail">
		<a href="<?php echo Ac_Util::getCrossLink($this->listing->area_l2, 'area_l2');?>">
			<?php echo $distric_name?>
		</a>
</dd>
<?php endif;?>
